<div  class="{if $item['isright'] == 1}right{else}cuo{/if}"></div>
<h2>[{$types_config[$question_info['type']]}]</h2>
<p class="timu">第{$pindex}题.{$question_info['question']}
	{if $question_info['thumb'] != ''}
	<br>
	<img src="{php echo img_url($question_info['thumb'])}" alt="" style="display:inline-block; width:100%; margin-top:10px;"/>
	{/if}
</p>
{if $question_info['type'] == 1}
<ul>
    <li><label><input name="answer1" type="radio" value="1" {if $item['answer']==1}checked{/if}/> 正确</label></li>
    <li><label><input name="answer1" type="radio" value="2" {if $item['answer']==2}checked{/if}/> 错误</label></li>
</ul>
<div class="jieshi">
    <h3>正确答案是：{if $item['answer']==1}正确{else}错误{/if}
    </h3>
{else if $question_info['type'] == 2}
<ul>
    {loop $answer_array $key $value}
    {if $key <4 || ($key >=4 && (!empty($question_info['items'][$key]) || !empty($question_info['img_items'][$key])) )}
    <li>
        <label><input name="answer2" type="radio" value="{$value}" {if $item['answer'] == "$value"}checked{/if}/> {$value}.{$question_info['items'][$key]} </label> 
        {if $question_info['isimg'] == 1 && !empty($question_info['img_items'][$key])}
        <br>
        <img src="{php echo img_url($question_info['img_items'][$key])}" alt=""/>
        {/if}
    </li>
    {/if}
    {/loop}
</ul>
<div class="jieshi">
    <h3>正确答案是：
        {loop $answer_array $key $value}
            {if $question_info['answer'] == "$value"}{$value}. {$question_info['items'][$key]}{/if}
        {/loop}
    </h3>
{else if $question_info['type'] == 3}
    <ul>
        {loop $answer_array $key $value}

        {if $key <4 || ($key >=4 && (!empty($question_info['items'][$key]) || !empty($question_info['img_items'][$key])) )}
        <li>
            <label><input name="answer3[]" type="checkbox" value="{$value}" {if stripos($item['answer'], "$value") > -1}checked{/if}/> {$value}.{$question_info['items'][$key]} </label>
            {if $question_info['isimg'] == 1 && !empty($question_info['img_items'][$key])}
            <br>
            <img src="{php echo img_url($question_info['img_items'][$key])}" alt=""/>
            {/if}
        </li>
        {/if}
        {/loop}
    </ul>
	<div class="jieshi">
    <h3>正确答案是：
        <br>
        {loop $answer_array $key $value}
        {if $question_info['answer'] == "$value"}{$value}. {$question_info['items'][$key]}{/if}
        {if stripos($question_info['answer'], "$value") > -1}{$value}. {$question_info['items'][$key]}<BR/>{/if}
        {/loop}
    </h3>
{/if}
    <br>
    {if $question_info['explain'] != ''}
    <p>解析：{$question_info['explain']}</p>
    {/if}
</div>
<input type="hidden" name="questionid" id="questionid" value="{$question_info['id']}" />
<input type="hidden" name="type" id="type" value="{$question_info['type']}" />
<input type="hidden" name="btime" id="btime" value="{php echo time()}" />

